package com.insightfullogic.java8.examples.chapter1;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;

import static java.util.Arrays.asList;

public class SampleDataCN {

    public static final Artist mj = new Artist("迈克尔杰克逊", "US");

    public static final Artist xuSong = new Artist("许嵩", "CN");

    public static final Artist xuLiang = new Artist("徐良", "CN");

    public static final Artist huYanBin = new Artist("胡彦斌", "CN");

    public static final Artist linJunJie = new Artist("林俊杰", "CN");

    public static final List<Artist> membersOfTheCNPopular = Arrays.asList(xuSong, xuLiang, huYanBin, linJunJie);

    public static final Artist theCNPopulars = new Artist("中国流行音乐人气歌手", membersOfTheCNPopular, "CN");

    public static final Album aLoveSupreme = new Album("A Love Supreme", asList(new Track("Acknowledgement", 467), new Track("Resolution", 442)), asList(mj));

    public static final Album sampleShortAlbum = new Album("sample Short Album", asList(new Track("short track", 30)), asList(mj));

    public static final Album manyTrackAlbum = new Album("sample Short Album", asList(new Track("short track", 30), new Track("short track 2", 30), new Track("short track 3", 30), new Track("short track 4", 30), new Track("short track 5", 30)), asList(mj));

    public static Stream<Album> albums = Stream.of(aLoveSupreme);

    public static Stream<Artist> threeArtists() {
        return Stream.of(mj, xuSong, theCNPopulars);
    }

    public static List<Artist> getThreeArtists() {
        return Arrays.asList(mj, xuSong, theCNPopulars);
    }

}
